﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Model;
using BLL;
public partial class successcase: System.Web.UI.Page
{
     protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadLeft();
        }
    }

     private void LoadLeft()
     {

         BllSuccess bll = new BllSuccess();
         var list = bll.GetList(c => true);
         StringBuilder sb = new StringBuilder();
         for (int i = 0; i < list.Count; i++)
         {
             tb_success obj = list[i];
             string no1 = obj.no1;
             string no2 = obj.no2;
             string no3 = obj.no3;
             string no4 = obj.no4;
             string no5 = obj.no5;
             string no6 = obj.no6;
             string no7 = obj.no7;
             string src = obj.src;
             sb.Append(string.Format(@"<li>
                    <div class='gd1'>
                      <img src='{0}' />
                    </div>
                    <div class='gd2'>
                        <span class='gs2'>{1}</span> <span class='gs4'>{2}</span> <span class='gs4'>{3}</span>
                            <span class='gs4'>
                          {4}</span>
                            <span class='gs4'>
                           {5}</span>
                              <span class='gs4'>
                           {6}</span>
                    </div>
                </li>", src, no1, no2, no3, no4,no5,no6,no7));
         }
         ltlli.Text = sb.ToString();
     }
}